package com.ryhx.wifi.base.model.newsinfo.dao;// 包名所在行

import java.util.List;
import java.util.Map;

import com.ryhx.osp.common.page.MysqlPageBean;
import com.ryhx.wifi.facade.base.entity.NewsInfo;//model名引入所在行
import com.ryhx.wifi.common.exceptions.BizException;//Exception名引入所在行

public interface NewsInfoDao {
    NewsInfo getNewsInfo(Map<String, Object> query) throws BizException;
    List<NewsInfo> getNewsInfoList(NewsInfo newsInfo, MysqlPageBean pageBean) throws BizException;
    Integer getNewsInfoListCount(NewsInfo newsInfo) throws BizException;
    List<NewsInfo> getNewsInfoListByParams(Map<String, Object> params) throws BizException;
    Integer getNewsInfoListCountByParams(Map<String, Object> params) throws BizException;
    Long  insertNewsInfo(NewsInfo newsInfo) throws BizException;
    int batchInsertNewsInfo(List<NewsInfo> list) throws BizException;
    int batchUpdateNewsInfo(List<NewsInfo> list) throws BizException;
    int updateNewsInfo(NewsInfo newsInfo) throws BizException;
    int updateNewsInfoWithoutNull(NewsInfo newsInfo) throws BizException;
    int updateNewsInfoByWhereSql(Map<String,Object> newsInfo) throws BizException;
    int truncateNewsInfo() throws BizException;
    int deleteNewsInfo(Map<String, Object> query) throws BizException;
    int deleteNewsInfoList(Map<String, Object> query) throws BizException;
    int deleteNewsInfoByWhereSql(Map<String, Object> query) throws BizException;
    int batchDeleteNewsInfo(List<Long> list) throws BizException;
    int batchDeleteNewsInfoList(List<NewsInfo> newsInfoList) throws BizException;
}
